package org.lanqiao.practice_2;

import java.util.Stack;

public class MyStacks {
	//创建一个存放12个月信息的表
	static String []month=new String[]{"January","Februry","March","April","May","June"
			,"July","August","september","October","November","December"};
	public static void main(String[]args){
		Stack sta=new Stack();
		for(int i=0;i<month.length;i++){
			sta.push(month[i]);
		}
		for(int i=0;i<month.length;i++){
			System.out.println(sta.pop()+"  ");
		}
	}
}
